package com.luhaoran.hrm.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.luhaoran.hrm.entity.User;
import com.luhaoran.hrm.exception.MyJsonValidationException;

import java.util.List;

/**
 * @author haoranlu
 * @project IntelliJ IDEA
 */
public interface IUserService extends IService<User> {
    /**
     *用户登录接口
     * @param user
     * */
    JSONObject login(User user);

    List<User> getList();

    Integer saveUser(User user);

    void changePwd(Integer id, String password);

    void removeUser(Integer id);
}
